package file;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;

public class Demo5 {

	public static void main(String[] args) {
		File f=new File("e:\\abc.txt");
		try {
			InputStreamReader isr
					= new InputStreamReader(new FileInputStream(f),"utf-8");
			BufferedReader br=new BufferedReader(isr);
			String s;
				while((s=br.readLine())!=null){
					System.out.println(s);
				}
				br.close();
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
				
	}

}
